package com.atguigu.springcloud.service.serviceImpl;

import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;
import com.atguigu.springcloud.service.PaymentFeignService;
import org.springframework.stereotype.Component;

/**
 * @Author yangjin
 * @Description
 * @Date 2021/7/1/21:26
 **/
@Component
public class PaymentFeignServiceImpl implements PaymentFeignService {
    @Override
    public CommonResult<Payment> getPaymentById(Long id) {
        return new CommonResult<>(105,"服务端响应异常",null);
    }

    @Override
    public String paymentFeignTimeOut() {
        return "服务端报错，此时的fallback由80客户端FeignClients标记的接口实现类返回！";
    }
}
